﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Circle:Shape
    {
        //圆形
        private double radius;

        public double Radius { get => radius; set => radius = value; }


       

        public override void GetArea(int radius)
        {
            //Console.WriteLine("请输入圆形的半径");
            //double r = int.Parse(Console.ReadLine());
            double area = 3.14 * radius * radius;
            Console.WriteLine("圆的面积"+area);
        }

       
    }
}
